#pragma once
#include <stdint.h>
#include <string>
#include "MsgHandler.h"
class CDevMngMsgHandler :public CMsgHandler
{
public:
	CDevMngMsgHandler();
	virtual ~CDevMngMsgHandler();
	virtual void HandleMsg(SessionPtr session, char* req, int32_t len);
public:
	int64_t m_heartbeakTick;
private:
	void* m_userPtr;
	bool m_bClose=false;	
	std::string m_className;
};


class CBackSvrMsgHandler :public CMsgHandler
{
public:
	CBackSvrMsgHandler();
	virtual ~CBackSvrMsgHandler();
	virtual void HandleMsg(SessionPtr session, char* req, int32_t len);
public:
	int64_t m_heartbeakTick;
private:
	void* m_userPtr;
	bool m_bClose = false;
	std::string m_className;
};

class CMsgReqHandler :public CMsgHandler
{
public:
	CMsgReqHandler();
	virtual ~CMsgReqHandler();
	virtual void HandleMsg(SessionPtr session, char* req, int32_t len);	
public:
	int64_t m_heartbeakTick;
	uint64_t m_sessionID;
	uint64_t m_moduleID;
	uint64_t m_destModuleID;
private:
	void* m_userPtr;
	bool m_bClose = false;
	std::string m_className;
};
